package cibertec.java;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class WsClase01Activity extends Activity implements OnClickListener {
    Button btn;
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        btn=(Button)findViewById(R.id.button1);
        btn.setOnClickListener(this);
    }
	public void onClick(View v) {
		// TODO Auto-generated method stub
		if(v==btn){
			Intent ir=new Intent(WsClase01Activity.this, Activity2.class);
			Bundle datos=new Bundle();
			datos.putString("cod","A01");
			datos.putString("nom","Ana");
			ir.putExtras(datos);
			startActivity(ir);
		}
	}
}